package com.woniuxy.user.mapper;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
public interface UserMapper {
    List<User> selectAll();

    User selectById(int id);

    void insertUser(User user);

    void updateUser(User user);

    void deleteUser(int id);

    User selectByName(String username);

    List<User> selectName(String username);

    List<User> selectIdcard(String idcard);

    /**
     * 席磊添加
     * @param username
     * @return
     */
    User selectOneUserByName(String username);
}
